   
<link rel="stylesheet" href="./vanui.css">
   <div id="root">
   <van-nav-bar
     title="首页"
     @click-back="backFn"
     @click-search="searchFn"
   ></van-nav-bar>

     <van-button title="修改" type="red"  @click="handleFn">修改</van-button>
     <van-button title="修改"  type="green" @click="handleFn">创建</van-button>

     <van-loading v-bind:show="true"></van-loading>

     <tankuang title="再点一下啊" :show='true'></tankuang>

         <br></br>


     <vantable :columns="columns1" :data="data1"></vantable>

   </div>
   <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
   <script src="./vanui.js"></script>
   <script>


   const vm = new Vue({
       el: "#root",
       data: {
        columns1: [
                    {
                        title: 'Name',
                        key: 'name',
                        
                    },
                    {
                        title: 'Age',
                        key: 'age'
                    },
                    {
                        title: 'Address',
                        key: 'address'
                    },

                    {
                        title: 'date',
                        key: 'date'
                    }
                ],
                data1: [
                    {
                        name: 'John Brown',
                        age: 18,
                        address: 'New York No. 1 Lake Park',
                        date: '2016-10-03'
                    },
                    {
                        name: 'Jim Green',
                        age: 24,
                        address: 'London No. 1 Lake Park',
                        date: '2016-10-01'
                    },
                    {
                        name: 'Joe Black',
                        age: 30,
                        address: 'Sydney No. 1 Lake Park',
                        date: '2016-10-02'
                    },
                    {
                        name: 'Jon Snow',
                        age: 26,
                        address: 'Ottawa No. 2 Lake Park',
                        date: '2016-10-04'
                    }
                ]

         },
         methods:{
            backFn(){
                console.log('这是backFn');
             } ,
            searchFn(){
                console.log('这是searchFn');
            },

            handleFn(){
                console.log('修改了颜色');
            }

         }
   })

   
   </script>


